package com.xxxx.server.config;


import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * RabbitMQ配置类
 *
 * @author zhoubin
 * @since 1.0.0
 */

/*@Configuration
public class RabbitMQConfig {

    //1.队列
    @Bean
    public Queue queue(){
        return new Queue("mail.welcome");
    }

    //2.交换机
    @Bean
    public DirectExchange directExchange(){
        return new DirectExchange("direct_exchange");
    }

    //3.交换机队列绑定
    @Bean
    public Binding binding(){
        return BindingBuilder.bind(queue()).to(directExchange()).with("mail.#");
    }

}*/
